# projects/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# 创建 DRF 路由器
router = DefaultRouter()

# 注册项目视图集
router.register(r'projects', views.ProjectViewSet, basename='project')

# URL 配置
urlpatterns = [
    # 包含路由器生成的 URL
    path('', include(router.urls)),
]